﻿@model MvcAtletIS.Models.DocumentsCategories

@{
    ViewBag.Title = "Kategórie dokumentov";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Editovať kategóriu dokumentov</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Detaily</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Subfolder)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Subfolder)
            @Html.ValidationMessageFor(model => model.Subfolder)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Order)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Order)
            @Html.ValidationMessageFor(model => model.Order)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <p>
            <input type="submit" value="Uložiť" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Naspäť na prehľad kategórii dokumentov", "Index")
</div>
